package com.lilinling.yinzhi.user.feign;

import com.lilinling.common.utils.R;
import com.lilinling.yinzhi.user.feign.fallback.OrderFeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 这是一个声明式的远程调用
 */

@FeignClient(value = "yinzhi-order", fallback = OrderFeignServiceFallBack.class)
public interface OrderFeignService {

    @RequestMapping("/order/order/user/list")
    public R userOrder();
}
